package java3_13;

import java.util.Scanner;

public class Admin_application {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Administrator admin = new Administrator();
        admin.id = "admin";
        admin.password = "111111";
        System.out.println("请输入用户名:");
        String name = scanner.next();
        System.out.println("请输入密码:");
        String pwd = scanner.next();
        if (admin.id.equals(name)&&admin.password.equals(pwd)){
            admin.change();
            return;
        }
        System.out.println("用户名和密码不匹配！您没有权限更新管理员信息。");
    }
}
